# Maintainer: Alexey Pavlov <alexpux@gmail.com>

_realname=poppler-data
pkgbase=mingw-w64-${_realname}
pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}"
pkgver=0.4.11
pkgrel=1
pkgdesc="Encoding data for the poppler PDF rendering library"
arch=('any')
mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clang32')
license=('custom' 'GPL2')
url="https://poppler.freedesktop.org/"
source=(https://poppler.freedesktop.org/${_realname}-${pkgver}.tar.gz)
sha256sums=('2cec05cd1bb03af98a8b06a1e22f6e6e1a65b1e2f3816cb3069bb0874825f08c')

package() {
  cd "${srcdir}/${_realname}-${pkgver}"
  make prefix=${MINGW_PREFIX} DESTDIR="${pkgdir}" install

  install -m755 -d "${pkgdir}${MINGW_PREFIX}/share/licenses/${_realname}"
  install -m644 COPYING COPYING.adobe \
    "${pkgdir}${MINGW_PREFIX}/share/licenses/${_realname}/"
}
